@echo off
::rm -rf meicanAuto

rem if no pyinstaller, please open belowe command
rem pip install pyinstaller
::pip install pyinstaller

rmdir /s/q dist
del /f meican.7z

pyinstaller.exe .\main.spec

robocopy cfg dist\cfg /mir 
::rename  dist meicanAuto
robocopy  dist meicanAuto  /e /R:0 

del /f .\meicanAuto\cfg\mc.cookie

::rem 7z a -tzip meican.7z  meicanAuto
7z a -tzip meican.zip meicanAuto
rmdir /s/q meicanAuto

::pause
